﻿using BL.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace BL
{
    public class Location
    {
        [Key]
        public virtual int ID { get; set; }

        public virtual float Lat { get; set; }

        public virtual float Lng { get; set; }

        [NotMapped]
        public virtual string LatLng
        {
            get
            {
                return string.Format("[{0},{1}]", Lat, Lng);
            }
        }

        public virtual LocationDetail Details { get; set; }
    }
}
